package cc.rengu.redp.flowable.bizmodel.db.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 业务数据索引表
 *
 * @author System
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("T_BIZ_INDEX")
public class BizIndex implements Serializable {

    private static final long serialVersionUID = 1L;

    // todo 缺id

    /**
     * 业务数据模型ID
     */
    @TableField("MODEL_ID")
    private Long modelId;

    /**
     * 索引字段名称
     */
    @TableField("FIELD_NAME")
    private String fieldName;

    /**
     * 索引字段值(String)
     */
    @TableField("FIELD_VALUE_STRING")
    private String fieldValueString;

    /**
     * 索引字段值(Date)
     */
    @TableField("FIELD_VALUE_DATE")
    private LocalDate fieldValueDate;

    /**
     * 数据ID
     */
    @TableField("DATA_ID")
    private Long dataId;


}
